Contract
inline fun <Activity : Activity, Input> Contract(input: Input, noinline provideResultLauncher: Activity.() -> ActivityResultLauncher<Input>): NavigationSpec.Contract<Input, Activity>
Navigates using an ActivityResultLauncher
Parameters
Input
the type of input to provide to the ActivityResultLauncher
Activity
the type of android.app.Activity to provide the ActivityResultLauncher
input
the Input to provide to the ActivityResultLauncher
provideResultLauncher
A callback method called on an instance of Activity to provide an ActivityResultLauncher to launch with input. Note that this method may be called after the instance of Activity has been created.